Solve integration using formulas